<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="0" />
<title>监督会议管理</title>
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<script type="text/javascript">
	$(document).ready(function(){
		$("#addMeeting").click(
				function() {
					var url = "${ctx}/project/meeting!input.action?projectId=${param.projectId}";
				    mm = showDialogWindow(url);
						if (mm != null) {
							document.location.reload();
							//window.document.location.replace(usl);
						}
				});
			$("#cloBtn").click(function(){
				window.close();
			});	
	});
	function deleteMeeting(url){
		$.ajax({ url: url, context: document.body, dataType:'text', success: function(msg){
			if("1"==msg){
				document.location.reload();
			}else{
				alert("系统出错!");
			}
		}});				
	}	
	function updateMeeting(url){
	  	    mm = showDialogWindow(url);
			if (mm != null) {
				document.location.reload();
			}
	}
</script>
</head>
<body>
<div id="heading" class="metting"><h6>监督会议</h6></div>
<form id="mainForm" action="department.action" method="post"
	class="yform">
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<div id="content">
<table id="contentTable">
	<tr>
		<th>会议议题</th>
		<th>参会日期</th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="meeting">
		<tr>
			<td>${meeting.issue}&nbsp;</td>
			<td><fmt:formatDate value="${meeting.partDate}" pattern="yyyy-MM-dd" /> &nbsp;</td>
			<td>&nbsp;
			<a href="#" onclick="updateMeeting('${ctx}/project/meeting!input.action?id=${meeting.id}')">修改</a>&nbsp; 
			<a href="#" onclick="deleteMeeting('${ctx}/project/meeting!deleteMeeting.action?id=${meeting.id}');">删除</a></td>
		</tr>
	</c:forEach>
</table>
</div>
<div class="type-button"><input id="addMeeting"
	 type="button" class="submit" value="新增" /> 
</div>
</form>
</body>
</html>
